package luj.game.robot.api.boot;

import luj.game.robot.api.network.http.RobotHttpModule;
import luj.game.robot.internal.instance.config.BotConf;

import java.util.List;
import java.util.Map;

public interface RobotStartListener {

  interface Context {

    void createRobot(List<BotConf> conf);

    Internal getInternal();
  }

  interface Internal {

    Network network();
  }

  interface Network {

    List<Http> listHttp();
  }

  interface Http {

    String getUri();

    RobotHttpModule getModule();

    void receive(Map<String, List<String>> reqParam, Object recvParam);
  }

  void onStart(Context ctx);
}
